<?php
header('Content-Type:text/html;charset=utf-8');
require('../public/header.php');
$res=select2($con,'fenlei');

?>

    <!--/sidebar-->
    <div class="main-wrap">

        <div class="crumb-wrap">
            <div class="crumb-list"><i class="icon-font"></i><a href="/admin/guanli.php">首页</a><span class="crumb-step">&gt;</span><a class="crumb-name" href="/admin/wenzhang/index.php">文章管理</a><span class="crumb-step">&gt;</span><span>新增文章</span></div>
        </div>
        <div class="result-wrap">
            <div class="result-content">
                <form action="/admin/wenzhang/insert2.php" method="post" id="myform" name="myform" enctype="multipart/form-data">
                    <table class="insert-tab" width="100%">
                        <tbody>
                            <tr>
                                <th><i class="require-red">*</i>选择栏目：</th>
                                <td>
                                 <select name="fid" style="width:383px;height:28px;border-radius:5px">
                                 <?php
                                foreach($res as $v){
                                    echo'<option value='.$v['id'].'>'.$v['leibie'].'</option>';
                                    }
                                    ?>
                                    </select>
                                </td>
                            </tr>
                            <tr>
                                <th><i class="require-red">*</i>标题：</th>
                                <td>
                                    <input class="common-text required" id="title" name="title" size="50" value="" type="text">
                                </td>
                            </tr>
                            <tr>
                                <th><i class="require-red">*</i>图片：</th>
                                <td><input name="files" type="file" style="width:376px;height:24px;border-radius:5px;border:1px solid #999999">
                                <input type="hidden" name="MAX_FILE_SIZE" value="2000000">
                                </td>
                            </tr>
                            <tr>
                                <th><i class="require-red">*</i>内容：</th>
                                <td>
                                    <textarea class="common-text required" col="30"  name="content" value="" type="text" style="width:373px;height:200px"></textarea>
                                </td>
                            </tr>
                            <tr>
                                <th><i class="require-red">*</i>标签：</th>
                                <td>
                                    <input class="common-text required" id="title" name="biaoqian" size="50" value="" type="text">
                                </td>
                            </tr>
                            <tr>
                                <th>状态：</th>
                                <td>
                                <input class="common-text" name="zhuangtai" size="50" value="1" type="radio">1
                                <input class="common-text" name="zhuangtai" size="50" value="0" type="radio">0
                                </td>
                            </tr>
                            <!-- <tr>
                                <th>内容：</th>
                                <td><textarea name="content" class="common-textarea" id="content" cols="30" style="width: 98%;" rows="10"></textarea></td>
                            </tr> -->
                            <tr>
                                <th></th>
                                <td>
                                    <input class="btn btn-primary btn6 mr10" value="提交" type="submit">
                                    <input class="btn btn6" onclick="history.go(-1)" value="返回" type="button">
                                </td>
                            </tr>
                        </tbody></table>
                </form>
            </div>
        </div>

    </div>
    <!--/main-->
<?php
require('../public/footer.php');